home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / nanofrag.gsh < prev    next >
Text File  |  2000-08-22  |  3KB  |  123 lines

  1. // defines the weapon Wpn_Nanofrag
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_NANOFRAG_GSH
  8. #define INCLUDED_NANOFRAG_GSH
  9.  
  10. #include "defaults.gsh"
  11.  
  12. ////////////////////////////////////////////////////////////////////////////////////
  13.  
  14. light Lit_Nanofrag
  15. {
  16.     red             4
  17.     green           5
  18.     blue            3
  19.     specular red    0.3
  20.     specular green    0.4
  21.     specular blue    0.2
  22.     range           64
  23. }
  24.  
  25. pgenerator Pgn_Nanofrag
  26. {
  27.     type smoke
  28.     life infinite    // well, it lasts as longs as the projectile it's attached to anyway
  29.     rate 40
  30.     // stream direction
  31.     x 0 y 0 z 0
  32.     // particle colour
  33.     red 0.2 green 0.3 blue 0.1 alpha 0.7
  34. }
  35.  
  36. projectile Prj_Nanofrag
  37. {
  38.     gravity        yes // is this missile affected by gravity
  39.     damage        99 // in strength points
  40.     blast damage    99 // proximity damage
  41.     blast range    12 // in metres
  42.     hit_light    Lit_Nanofrag    // just for the explosion
  43.     sound        grenade sound
  44. }
  45.  
  46. role Rol_Nanofrag : Rol_DefaultProjectile
  47. {
  48.     pgen        Pgn_Nanofrag
  49.  
  50.     projectile    Prj_Nanofrag
  51.  
  52.     limit        16
  53. }
  54.  
  55. // NANOFRAG
  56. ammo
  57. {
  58.     weapon type        nanofrag
  59.     ammo type        nanotech dismantler
  60.  
  61.     round time        4
  62.     reload time        5
  63.     life timer        0
  64.     magazine size        5
  65.     sound            grenade launcher sound
  66.  
  67.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  68.     name            "sub ammo nano ra"
  69.  
  70.     projectile        Rol_Nanofrag // what it fires
  71.     firing speed    40 // m/s
  72. }
  73.  
  74. ////////////////////////////////////////////////////////////////////////////////////
  75.  
  76. shape Shp_Nanofrag_Pickup
  77. {
  78.     file "objects\nanofrag pickup a.rif"
  79.     name "nanofrag pickup a"
  80. }
  81.  
  82. hierarchy Hcy_Nanofrag_Inventory_Pickup
  83. {
  84.     file "objects\nanofrag.rif"
  85.     name "nanofrag"
  86.     hotspot none
  87. }
  88.  
  89. character Chr_Nanofrag_Pickup : Chr_Default
  90. {
  91.     turning speed   0    // this is in revolutions per second
  92.     walking speed   0    // this is in animation cycles per second
  93.     weapon            nanofrag
  94.     strength        10    // initial strength points
  95.     aim                0
  96.     aggression        0.41    // 4 = weapon pickup
  97. }
  98.  
  99. role Rol_Nanofrag_Pickup : Rol_DefaultPickup
  100. {
  101.     shape            Shp_Nanofrag_Pickup
  102.  
  103.     inventory shape    Hcy_Nanofrag_Inventory_Pickup
  104.  
  105.     character        Chr_Nanofrag_Pickup
  106.  
  107.     identifier        "nanofrag"
  108.  
  109.     destructibility    Des_Explode
  110.  
  111.     armour            25
  112.  
  113.     limit            2
  114.  
  115.     description        nanofrag description
  116.  
  117.     pickup name        nanofrag pickup
  118. }
  119.  
  120. ////////////////////////////////////////////////////////////////////////////////////
  121.  
  122. // end wrapper - for preventing multiple or recursive inclusions
  123. #endif // !INCLUDED_NANOFRAG_GSH